package com.tlc.bean;

public class Book {
    private int sid;
    private String sname;
    private double price;
    private String auther;
    private String phouse;
    private String dtime;
    private int bcount;
    private String nsale;
    private String classify;
    private String lang;
    private String cover;

    public Book() {
    }

    public Book(String sname, double price, String auther, String phouse, String dtime, int bcount, String nsale, String classify, String lang, String cover) {
        this.sname = sname;
        this.price = price;
        this.auther = auther;
        this.phouse = phouse;
        this.dtime = dtime;
        this.bcount = bcount;
        this.nsale = nsale;
        this.classify = classify;
        this.lang = lang;
        this.cover = cover;
    }

    public Book(int sid, String sname, double price, String auther, String phouse, String dtime, int bcount, String nsale, String classify, String lang, String cover) {
        this.sid = sid;
        this.sname = sname;
        this.price = price;
        this.auther = auther;
        this.phouse = phouse;
        this.dtime = dtime;
        this.bcount = bcount;
        this.nsale = nsale;
        this.classify = classify;
        this.lang = lang;
        this.cover = cover;
    }

    public int getSid() {
        return sid;
    }

    public void setSid(int sid) {
        this.sid = sid;
    }

    public String getSname() {
        return sname;
    }

    public void setSname(String sname) {
        this.sname = sname;
    }

    public double getPrice() {
        return price;
    }

    public void setPrice(double price) {
        this.price = price;
    }

    public String getAuther() {
        return auther;
    }

    public void setAuther(String auther) {
        this.auther = auther;
    }

    public String getPhouse() {
        return phouse;
    }

    public void setPhouse(String phouse) {
        this.phouse = phouse;
    }

    public String getDtime() {
        return dtime;
    }

    public void setDtime(String dtime) {
        this.dtime = dtime;
    }

    public int getBcount() {
        return bcount;
    }

    public void setBcount(int bcount) {
        this.bcount = bcount;
    }

    public String getNsale() {
        return nsale;
    }

    public void setNsale(String nsale) {
        this.nsale = nsale;
    }

    public String getClassify() {
        return classify;
    }

    public void setClassify(String classify) {
        this.classify = classify;
    }

    public String getLang() {
        return lang;
    }

    public void setLang(String lang) {
        this.lang = lang;
    }

    public String getCover() {
        return cover;
    }

    public void setCover(String cover) {
        this.cover = cover;
    }

    @Override
    public String toString() {
        return "Book{" +
                "sid=" + sid +
                ", sname='" + sname + '\'' +
                ", price=" + price +
                ", auther='" + auther + '\'' +
                ", phouse='" + phouse + '\'' +
                ", dtime='" + dtime + '\'' +
                ", bcount=" + bcount +
                ", nsale='" + nsale + '\'' +
                ", classify='" + classify + '\'' +
                ", lang='" + lang + '\'' +
                ", cover='" + cover + '\'' +
                '}';
    }
}
